/* 放index页面的样式表 */
.banner {
  height: 500px;
  background-color: #f5f5f5;
}

.banner .wrapper {
  position: relative;
  height: 500px;
  background-color: pink;
}

/* 侧导航 */
.banner .aside {
  position: absolute;
  left: 0;
  top: 0;
  width: 250px;
  height: 500px;
  background-color: rgba(0, 0, 0, 0.8);
}



/*轮播*/
.swipe{
  /* 相对定位 */
  position: relative;
  width: 1240px;
  height: 500px;
  text-align: center;
  color: #fff;
  /* 溢出隐藏 */
  overflow: hidden;
}
.swipe ul{
  padding: 0;
  width: calc(1240px * 3);
  transition: 0.5s;
}
.swipe li{
  float: left;
  width: 1240px;
  height: 500px;
  list-style: none;
  line-height: 500px;
  font-size: 50px;
}

.swipe li:nth-child(1){
  background-color: lightcoral;
}
.swipe li:nth-child(2){
  background-color: lightseagreen;
}
.swipe li:nth-child(3){
  background-color: lightsalmon;
}


/* for属性值以“indicator”开头的所有label元素（指示器） */
.swipe label[for^="indicator"]{
  /* 绝对定位 */
  position: absolute;
  top: 450px;
  width: 20px;
  height: 20px;
  background-color: rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

/* for属性值为“indicator1”的label元素 */
.swipe label[for="indicator1"]{
  left: 44%;
}

/* for属性值为“indicator2”的label元素 */
.swipe label[for="indicator2"]{
  left: 49%;
}

/* for属性值为“indicator3”的label元素 */
.swipe label[for="indicator3"]{
  left: 54%;
}

/* 选中指示器设置ul的margin-left */
#indicator1:checked ~ ul{
  margin-left: 0;
}

#indicator2:checked ~ ul{
  margin-left: -1240px;
}

#indicator3:checked ~ ul{
  margin-left: -2480px;
}

/* 选中指示器改变指示器颜色 */
#indicator1:checked ~ label[for="indicator1"]{
  background-color: #fff;
}
#indicator2:checked ~ label[for="indicator2"]{
  background-color: #fff;
}
#indicator3:checked ~ label[for="indicator3"]{
  background-color: #fff;
}




.banner .aside li {
  height: 50px;
  line-height: 50px;
}

.banner .aside a {
  position: relative;
  /* 宽度和父级一样 */
  padding-left: 36px;
  padding-right: 19px;
  display: block;
  /* width: 250px; */
  height: 50px;
  /* background-color: pink; */
  color: #fff;
}

.banner .aside a span {
  margin-left: 15px;
  font-size: 14px;

}

.banner .aside a:hover {
  background-color: #27ba9b;
}

/* a的里面的最后面位置添加一个箭头 */
.banner .aside a::after {
  position: absolute;
  right: 19px;
  top: 19px;
  content: "";
  width: 6px;
  height: 11px;
  /* background-color: green; */
  background-image: url(../images/sprites.png);
  background-position: -80px -110px;
}

/* 箭头 */
.prev,
.next {
  position: absolute;
  top: 228px;
  width: 45px;
  height: 45px;
  background-color: rgba(0, 0, 0, 0.2);
  background-image: url(../images/sprites.png);
  border-radius: 50%;
}




/* 背景图位置负责两件事 改变箭头在盒子里面的位置 改变精灵图的位置 */
/* 导致在精灵图中测量的尺寸不准确 */
/* 解决方法有两种：
    1.书写背景图位置属性，借助谷歌的调试工具调试具体的位置数值
    2.书写标签的时候，a负责盒子， 里面再添加一个span负责箭头
*/
.prev {
  left: 260px;
  background-position: 14px -60px;
}

.next {
  right: 10px;
  background-position: -22px -60px;
}

/* 圆点 */

.banner ol {
  position: absolute;
  left: 680px;
  bottom: 30px;
  /* width: 200px; */
  height: 10px;
  /* background-color: pink; */
}

.banner ol li {
  float: left;
  margin-right: 24px;
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
}

.banner ol .current {
  background-color: #fff;
}













/* 新鲜好物 */
.goods .hd {
  height: 114px;
  /* background-color: pink; */
  line-height: 114px;
}

.goods .hd h2 {
  float: left;
  font-size: 29px;
  font-weight: 400;

  height: 114px;
}

.goods .hd h2 span {
  margin-left: 34px;
  font-size: 16px;
  color: #999;
}

.goods .hd a,
.shengxian .hd .more {
  float: right;
  color: #999;
}

.goods .hd a::after,
.shengxian .hd .more::after {
  content: "";
  display: inline-block;
  margin-left: 13px;
  width: 7px;
  height: 13px;
  /* background-color: green; */
  background-image: url(../images/sprites.png);
  background-position: 0 -110px;
  vertical-align: middle;
}




.goods .bd li {
  position: relative;
  float: left;
  margin-right: 8px;
  width: 302px;
  height: 350px;
  background-color: #f0f9f4;
  text-align: center;
  margin-top: 20px;
}

.goods .bd li:last-child {
  margin-right: 0;
}

.goods .bd li img {
  width: 304px;
  height: 235px;
}

.goods .bd li h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 400;
}

.goods .bd li div {
  color: #9a2e1f;
}

.goods .bd li span {
  font-size: 23px;
}

.goods .bd li b {
  position: absolute;
  left: 17px;
  top: 18px;
  width: 28px;
  height: 51px;
  border: 1px solid #27ba9b;
  border-radius: 2px;
  font-size: 18px;
  color: #27ba9b;
  font-weight: 400;
  line-height: 24px;
}

.shengxian .hd {
  height: 96px;
  /* background-color: pink; */
  line-height: 96px;
}

.shengxian .hd h2 {
  float: left;
  font-size: 29px;
  font-weight: 400;
}

.shengxian .hd .more {
  float: right;
}

.shengxian .hd ul {
  float: right;
  margin-right: 65px;
}

.shengxian .hd ul li {
  float: left;
}

.shengxian .hd li a {
  padding: 2px 7px;
  margin-left: 6px;
}

.shengxian .hd li a:hover {
  background-color: #27ba9b;
  color: #fff;
}
.shengxian .bd .left {
  float: left;
  width: 240px;
  height: 610px;
  background-color: pink;
}

.shengxian .bd .right {
  float: left;
  width: 1000px;
  height: 610px;
  background-color: skyblue;
}
